//
//  SinaService.h
//  OCDemo
//
//  Created by zhumuzhi on 2021/3/19.
//

#import <Foundation/Foundation.h>
#import "OCBaseService.h"


NS_ASSUME_NONNULL_BEGIN

@interface SinaService : OCBaseService


/// 单例方法
+ (instancetype)shared;




/// 获取微博授权Token
- (void)getWeiboAccessTokenSuccessBlock:(NetworkRequestSuccessBlock)successBlock
                           failureBlock:(NetworkRequestFailureBlock)failureBlock;

/// 取消获取微博授权Token
- (void)cancelGetAccessToken;




/// 获取用户信息
- (void)getUsersShowSuccessBlock:(NetworkRequestSuccessBlock)successBlock
                    failureBlock:(NetworkRequestFailureBlock)failureBlock;
/// 取消获取用户信息
- (void)cancelGetUsersShowTask;




/// 获取微博列表
- (void)getHomeTimelineSuccessBlock:(NetworkRequestSuccessBlock)successBlock
                        failureBlock:(NetworkRequestFailureBlock)failureBlock;
/// 取消获取微博列表
- (void)cancelGetHomeTimelineTask;




@end

NS_ASSUME_NONNULL_END
